from django.urls import path, re_path

from exercise import views

urlpatterns = [
    re_path(r'^el/$', views.ExerciseList.as_view()),
    re_path(r'^el/(?P<id>[0-9]+)/$', views.ExerciseDetail.as_view()),
    re_path(r'^egl/$', views.ExerciseGroupList.as_view()),
    re_path(r'^egl/(?P<id>[0-9]+)/$', views.ExerciseGroupDetail.as_view()),
    re_path(r'^upload/$', views.ExerciseUploadByFile.as_view()),
    path('get_recommend/', views.get_recommend),
    path('get_loglist/', views.get_log_list),
    path('get_graph/rate/', views.get_ability_graph),
    path('get_graph/total/', views.get_total_graph),
]
